#include<bits/stdc++.h>
using namespace std;
int main()
{
	double x,y,z;
	for(x=0;x<=20;x++)
	{
		for(y=0;y<=33;y++)
		{
			if((100-5*x-3*y)*3==(100-x-y))
				printf("cock=%d,hen=%d,chicken=%d\n",(int)x,(int)y,(int)(100-x-y));
		}
	}
    return 0;
}
